﻿@{
    Layout = null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>Index</title>
    <link href="@Url.Content("~/Areas/Admin/ligerUI/skins/Aqua/css/ligerui-all.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Areas/Admin/ligerUI/js/jquery-1.3.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Admin/ligerUI/js/ligerui.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Admin/ligerUI/js/plugins/ligerTab.js")" type="text/javascript"></script> 
     <script src="@Url.Content("~/Areas/Admin/artDialog/artDialog.js?skin=default")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Admin/artDialog/plugins/iframeTools.js")" type="text/javascript"></script>

  <script type="text/javascript">
      var tab = null;
      var tree = null;
      $(function () {

          //布局
          $("#layout1").ligerLayout({ leftWidth: 190, height: '100%', onHeightChanged: f_heightChanged });

          var height = $(".l-layout-center").height();

          //Tab
          $("#framecenter").ligerTab({ height: height });


          //树
          $("#tree1").ligerTree({
              checkbox: false,
              slide: true,
              btnClickToToggleOnly: false,
              nodeWidth: 130,
              attribute: ['nodename', 'url'],
              onSelect: function (node) {
                  if (!node.data.url) return;
                  var tabid = $(node.target).attr("tabid");
                  if (!tabid) {
                      tabid = new Date().getTime();
                      $(node.target).attr("tabid", tabid)
                  }
                  f_addTab(tabid, node.data.text, node.data.url);
              }
          });

          tab = $("#framecenter").ligerGetTabManager();
          tree = $("#tree1").ligerGetTreeManager();
          tree.expandAll();
          $("#pageloading").hide();

      });
      function f_heightChanged(options) {
          if (tab)
              tab.addHeight(options.diff);
          if (accordion && options.middleHeight - 24 > 0)
              accordion.setHeight(options.middleHeight - 24);
      }
      function f_addTab(tabid, text, url) {
          tab.addTabItem({ tabid: tabid, text: text, url: url });
      } 
             
            
     </script> 

     <style type="text/css"> 
        body,html{height:100%;}
        body{ padding:0px; margin:0;overflow:hidden;}  
        .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
        .l-link2{text-decoration:underline; color:white;}
        .l-layout-top{background:#102A49; color:White;}
        .l-layout-bottom{ background:#E5EDEF; text-align:center;}
         #pageloading{position:absolute; left:0px; top:0px; background:white url('/Content/ligerUI/loading.gif') no-repeat center; width:100%; height:100%;z-index:99999;}
        .l-link{ display:block; line-height:22px; height:22px; padding-left:20px;border:1px solid white; margin:4px;}
        .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;}    
        .l-winbar{ background:#2B5A76; height:30px; position:absolute; left:0px; bottom:0px; width:100%; z-index:99999;}
    </style>

</head>
<body style="padding:0px;" scroll="no">  
<div id="pageloading"></div> 
  <div id="layout1" style="width:100%">
        <div position="top" style="background:#102A49; color:White; ">

            <div style="margin-top:10px; margin-left:10px; float: left;">
                企业管理系统 V1.0.0
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                欢迎你 @Session["uname"],&nbsp;&nbsp;<a style=" color:#EABE4E; text-decoration: none; " href="@Url.Action("logout","Login")">[ 退出 ]</a>
                
            </div>
     
        </div>
        <div position="left"  title="主要菜单"> 
                     <div title="功能列表" class="l-scroll">
                         <ul id="tree1" style="margin-top:3px;">
                            <li isexpand="false">
                                <span>任务管理</span>
                                <ul> 
                                    <li url="@Url.Action("index", "Trade")"><span>行业管理</span></li>
                                    <li url="@Url.Action("index", "Style")"><span>风格管理</span></li>
                                    <li url="@Url.Action("index", "SetMeal")"><span>套餐管理</span></li>
                                    <li url="@Url.Action("index", "UsedFor")"><span>用途管理</span></li>
                                    <li url="@Url.Action("index", "Task")"><span>任务管理</span></li>
                                    <li url="@Url.Action("index", "SinglePage")"><span>单页信息</span></li>
                                    <li url="@Url.Action("index","Help")"><span>帮助管理</span></li>
                                </ul>
                            </li>

@*                            <li isexpand="false">
                                <span>产品管理</span>
                                <ul> 
                                    <li url="@Url.Action("index", "Categories")"><span>分类管理</span></li>
                                    <li url="@Url.Action("index", "Product")"><span>产品管理</span></li>
                                </ul>
                            </li>

                            <li isexpand="false">
                                <span>反馈管理</span>
                                <ul> 
                                    <li url="@Url.Action("index", "FeedBack")"><span>留言管理</span></li>

                                </ul>
                            </li>*@
                          
                            <li isexpand="false">
                                <span>系统管理</span>
                                <ul> 
                                    <li url="@Url.Action("index", "User")"><span>用户管理</span></li>
                                    <li url="@Url.Action("Edit", "System", new { ID=1})"><span>网站设置</span></li>
                                    <li url="@Url.Action("EditPwd", "User")"><span>密码修改</span></li>
                                </ul>
                            </li>

                         </ul>
                    </div>  
        </div>
        <div position="center" id="framecenter"> 
            <div tabid="home" title="我的主页" style="height:300px" >
                <iframe frameborder="0" name="home" id="home" src="@Url.Action("Welcome", "Index")"></iframe>
            </div> 
        </div> 
        <div position="bottom" style=" padding-top:5px;">
            Copyright © 2011-2012 @App.SiteName
        </div>
    </div>  
</body>
</html>
